package com.allwees.bs.module.scm.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.allwees.bs.core.model.order.entity.ErpBaseOrderSku;
import com.allwees.core.common.constant.EStatus;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 *
 * 拣货单
 *
 * @author mouhn
 * @since 2020-1-2 17:08
 */
@Data
@Accessors(chain = true)
@TableName("scm_pick_order_sku")
public class ScmPickOrderSku extends ErpBaseOrderSku {

    /** allocate order uuid **/
    private String allocateOrderSkuUuid;

    /** pick order uuid **/
    private String pickOrderUuid;

    /** 发货时间 **/
    private Date shippingAt;

    /** 实际发货数量 **/
    private Integer shippingQuantity;

    /** 打印时间 **/
    private Date printAt;

    /** 打印次数 **/
    private int printCount;

    public boolean isSellouted() {
        return EStatus.SELLOUT.value().equals(getStatus());
    }

    public boolean isHaved() {
        return EStatus.NORMAL.value().equals(getStatus());
    }
}
